﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using ComponentFactory.Krypton.Toolkit;
using System.Threading;
using SyncCommon;

namespace HefaSyncTool
{
    static class Program
    {
        public static string CommondLine = "";
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] command)
        {

            if (CheckDuplicate.Check())
            {
                return;
            }
            if (command != null && command.Length > 0)
            {
                foreach (string k in command)
                {
                    CommondLine = CommondLine + " " + k;
                }
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            KryptonManager kryptonManager = new KryptonManager();
            kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2007Silver;
            Application.Run(new SyncForm());
        }
    }
}
